<?php
include("../head.php");
/*
 * Created on 2008-9-7
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */


$url = "http://www.qianduan.net/"; //目标站
$fp = @fopen($url, "r") or die("超时");
$fcontents = file_get_contents($url);

eregi("<!DOCTYPE HTML>(.*)<!-- super cache -->", $fcontents, $regs);

//$regs[1]=str_replace("src=\"../images/","src=\"http://weather.tq121.com.cn/images/",$regs[1]);  //将相对路径的图片改为绝对路径的图片   网页 url

echo  $regs[1];



?>
